package com.portal.framework.webutil;



public class SessionUtil {
	
	/**
	 * 
	 * @Title: getUserContext
	 * @Description: 从Session中得userContext
	 * @return    
	 * UserDTO    返回类型
	 * @throws
	 */
	/*public static UserDTO getUserContext() {
		WebContext ctx = WebContextFactory.get();
		if (ctx != null  && ctx.getSession()!= null) {
			return ((UserDTO) ctx.getSession().getAttribute("user"));
		}
		else {
			Map session = ActionContext.getContext().getSession();
			if (session != null) {
				return ((UserDTO) session.get("user"));
			}else{
				 throw new RuntimeException("Session 过期");
			}
		}
	}*/


	
}
